<!-- MyList -->
<template>
  <div>
    <my-item v-show="todos.length > 0" :todos="todos"/>
    <div v-show="todos.length === 0">还未添加任务</div>
  </div>
</template>

<script>
import MyItem from './MyItem.vue'

export default {
  name: 'MyList',
  components: { MyItem },
  props: ['todos'],
  data(){
    return {
      
    }
  }
}
</script>

<style>

</style>